def numericSum(n):
    n = abs(n)
    total = 0
    while n > 0:
        total += n % 10
        n = n // 10
    return total
print(numericSum(34512))  
print(numericSum(123))    
print(numericSum(-789))   
print(numericSum(0))      